package com.zbs.simbot.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import java.util.ArrayList;
import java.util.List;

@Configuration
@ConfigurationProperties("qq.config")
public class SimBotConfig {
    // 主人QQ号
    public static List<Long> masterQq = new ArrayList<>();
    // 禁用私聊功能 true：私聊只接受ck以及抽卡链接（Bot主人不受限制），false：私聊可以触发全部指令，默认false
    public static boolean disablePrivate = false;
    // 禁用私聊Bot提示内容
    public static String disableMsg = "私聊功能已禁用，仅支持发送cookie，抽卡记录链接，记录日志文件";
    // 是否自动同意加好友 true-同意 false-不处理
    public static boolean autoFriend = false;


    public void setMasterQq(List<Long> masterQq) {
        SimBotConfig.masterQq = masterQq;
    }

    public void setDisablePrivate(boolean disablePrivate) {
        SimBotConfig.disablePrivate = disablePrivate;
    }

    public void setDisableMsg(String disableMsg) {
        SimBotConfig.disableMsg = disableMsg;
    }

    public void setAutoFriend(boolean autoFriend) {
        SimBotConfig.autoFriend = autoFriend;
    }
}
